//
//  SendMessageType.swift
//  xgwjinterconnection
//
//  Created by WangWeiShuo on 2025/8/30.
//

struct SendMessageType{
        static let TYPE_GET: UInt8                        = 0x01   // 查询数据
        static let TYPE_CONTROL: UInt8                    = 0x02   // 发送命令
        static let TYPE_FILE: UInt8                       = 0x03   // 发送文件
        
        static let GET_MSG_USER_INFO: UInt8               = 0x01   // 发送获取登录信息的命令
        static let GET_MSG_VEHICLE_INFO: UInt8            = 0x02   // 发送接收档位、车辆报警等信息的命令
        static let GET_MSG_VEHICLE_REAL_ALARM: UInt8      = 0x03   // 发送接收整车实时故障的命令
        static let GET_MSG_VEHICLE_HISTORY_ALARM: UInt8   = 0x04   // 接收整车历史故障的命令
        static let GET_MSG_ENGINE_REAL_ALARM : UInt8      = 0x05   // 接收发动机实时故障的命令
        static let GET_MSG_ENGINE_HISTORY_ALARM: UInt8    = 0x06   // 接收发动机历史故障的命令
        static let GET_MSG_VEHICLE_VERSION: UInt8         = 0x07   // 接收仪表型号等信息的命令
        static let GET_MSG_AIR_INFO: UInt8                = 0x08   //接收空调数据的命令
        static let GET_MSG_OPREATION_INFO: UInt8          = 0x09   //发送获取运行信息的命令
        static let GET_MSG_RADIO_INFO: UInt8              = 0x0A   //发送获取收音机信息的命令

        static let SEND_MSG_ACCOUNT: UInt8                = 0x20   //发送添加人员权限命令
        static let SEND_MSG_HORN: UInt8                   = 0x21   //发送喇叭命令
        static let SEND_MSG_LEFT_HANDLE: UInt8            = 0x22   //发送左手柄命令
        static let SEND_MSG_RIGHT_HANDLE: UInt8           = 0x23   //发送右手柄命令
        static let SEND_MSG_LEFT_WALK: UInt8              = 0x24   //发送左行走命令
        static let SEND_MSG_RIGHT_WALK: UInt8             = 0x25   //发送右行走命令
        static let SEND_MSG_AIR: UInt8                    = 0x26   //发送空调开关命令
        static let SEND_MSG_COMPRESSOR: UInt8             = 0x27   //发送空调压缩机开关命令
        static let SEND_MSG_AUTO_MODE: UInt8              = 0x28   //发送空调自动模式开关命令
        static let SEND_MSG_CYCLE_MODE: UInt8             = 0x29   //发送空调循环模式开关命令
        static let SEND_MSG_TEMPERATURE: UInt8            = 0x2A   //发送空调温度调节命令
        static let SEND_MSG_WIND_MODE: UInt8              = 0x2B   //发送空调出风模式命令
        static let SEND_MSG_VOICE: UInt8                  = 0x2C   //发送语音命令
        static let SEND_MSG_AIR_VOLUME: UInt8             = 0x2D   //发送风量控制
        static let SEND_MSG_AIR_UNIT: UInt8               = 0x2E   //发送单位控制
        static let SEND_MSG_RADIO: UInt8                  = 0x2F   //发送收音机开关命令
        static let SEND_MSG_RADIO_MODE: UInt8             = 0x30   //发送收音机模式命令
        static let SEND_MSG_RADIO_COLLECT: UInt8          = 0x31   //发送收音机切换收藏电台命令
        static let SEND_MSG_RADIO_PROGRAM: UInt8          = 0x32   //发送收音机切换电台命令
        static let SEND_MSG_RADIO_VOLUME: UInt8           = 0x33   //发送收音机调节音量命令
        static let SEND_MSG_RADIO_MUTE: UInt8             = 0x34   //发送收音机静音命令
        static let SEND_MSG_UPGRADE: UInt8                = 0x40   //发送显示器升级包
}

//enum MessageType: UInt8{
//    case get                        = 0x01     //查询数据
//    case control                    = 0x02     //发送命令
//    case file                       = 0x03     //发送文件
//}
//
////发送数据格式
//enum SendMessageType: UInt8{
//    case getUserInfo                = 0x01    //发送获取登录信息的命令
//    case getVehicleInfo             = 0x02    //发送接收档位、车辆报警、燃油位、水温、尿素液位信息的命令
//    case getVehicleRealFault        = 0x03    //发送接收整车实时故障的命令
//    case getVehicleHisFault         = 0x04    //接收整车历史故障的命令
//    case getEngineRealFault         = 0x05   //接收发动机实时故障的命令
//    case getEngineHisFault          = 0x06    //接收发动机历史故障的命令
//    case getVehicleVersion          = 0x07    //接收仪表型号、显示器硬件版本号、显示器软件版本号等命令
//    case getAirInfo                 = 0x08    //接收空调数据的命令
//    case getWorkingInfo             = 0x09    //发送获取运行信息的命令
//    case getRadioInfo               = 0x0A    //发送获取收音机信息的命令
//    case userInfo           = 0x20
//    case horn               = 0x21   //发送喇叭命令
//    case leftHandle         = 0x22   //发送左手柄命令
//    case rightHandle        = 0x23   //发送右手柄命令
//    case leftWalk           = 0x24   //发送左行走命令
//    case rightWalk          = 0x25   //发送右行走命令
//    case air                = 0x26   //发送空调开关命令
//    case compressor         = 0x27   //发送空调压缩机开关命令
//    case autoMode           = 0x28   //发送空调自动模式开关命令
//    case cycleMode          = 0x29   //发送空调循环模式开关命令
//    case temperature        = 0x2A   //发送空调温度调节命令
//    case windMode           = 0x2B   //发送空调出风模式命令
//    case voice              = 0x2C   //发送语音命令
//    case airWind            = 0x2D   //发送风量控制
//    case airUnit            = 0x2E   //发送单位控制
//    case radio              = 0x2F   //发送收音机开关命令
//    case radioMode          = 0x30   //发送收音机模式命令
//    case radioCollect       = 0x31   //发送收音机切换收藏电台命令
//    case radioProgram       = 0x32   //发送收音机切换电台命令
//    case radioVolume        = 0x33   //发送收音机调节音量命令
//    case upgrade            = 0x40   //发送显示器升级包
//}
